<?php
/*
* Author: Nguyen Hai Nam
* Module: ProductDetail
* Desc	: Something news hot
* Date	: 24/06/2012
*/
class ProductDetailModule extends Pick_Core_Module{
	
	function NewsDetailModule(){
		
		parent::Pick_Core_Module();
		//$this->pushJS();
		//$this->pushCSS();
		# Languages
		$languages = new Pick_Core_Languages();
		$objectLanguages = "";
		$objectLanguages = $languages->getObjects(1, 'status = 1', array('position'=>'ASC'), '');
		if($objectLanguages){
			$objectLanguages = $objectLanguages['data'];	
		}#endif
		$this->template->assign("objectLanguages", $objectLanguages);
	}
	public function getContent(){

		$product = new Pick_Dao_Product();
		$id = $this->request->get('id');
		return $this->display('productsub');
//		if($id){
//			$objProduct = $product->getObject($id);
//			if(is_object($objProduct)){
//				$cid = $objProduct->getField('cid');
//				$productCategory = new Pick_Dao_ProductCategory();
//				$objCat = $productCategory->getObject($cid);
//				$this->template->assign("objProduct", $objProduct);
//				$this->template->assign("objCat", $objCat);
//
//				// Tin lien quan
//				//$otherNews = $product->getRelatedProduct(1, $id);
//				//$this->template->assign("otherNews", $otherNews['data']);
//				return $this->display('productsub');
//			}
//		}
//		
//		return "";
	}
}